package com.glory.wxelectricitypda.bean;

import java.io.Serializable;
import java.util.ArrayList;
import java.util.List;

/**
 * @author hx
 * @date 2019/6/18
 * @desc
 */
public class LotBean implements Serializable {

    private String LOTID;
    private String MLOTID;
    private String EQPID;
    private String APPLYOUTQTY;

    private String MAID;
    private String CONUTBARS;
    private String FORMULA;
    private RulesBean RULES;
    private String SCRAPTOTALQTY;
    private List<ScrapBean> SCRAPS;
    private boolean isWrite;
    private LotInfoBean LotInfo;
    private List<BomInfoBean> BomInfo;
    private ArrayList<ScrapcoDescBean> SCRAPCODES;
    private ArrayList<AdurefBean> ADUREFLIST;
    private LotEntity LOT;

    private String DATECODES;
    private String GRADES;





    public String getDATECODES() {
        return DATECODES == null ? "" : DATECODES;
    }

    public void setDATECODES(String DATECODES) {
        this.DATECODES = DATECODES;
    }

    public String getGRADES() {
        return GRADES == null ? "" : GRADES;
    }

    public void setGRADES(String GRADES) {
        this.GRADES = GRADES;
    }

    private WorkOrderEntity WORKORDER;
    private List<VendertBean> VENDERLIST;//供应商
    private List<EquipmentBean> EquipmentList; //设备
    private List<EquipmentBean> SUBEQUIPMENTLIST; //子设备
    private List<StepBean> STEPLIST; //工序集合
    private List<EqpBean> EQPLIST; //设备集合
    private List<MatTypeBean> MATTYPELIST; //物料类型集合
    private List<MatTypeBean> MATLIST; //物料编码集合

    public String getAPPLYOUTQTY() {
        return APPLYOUTQTY == null ? "" : APPLYOUTQTY;
    }

    public void setAPPLYOUTQTY(String APPLYOUTQTY) {
        this.APPLYOUTQTY = APPLYOUTQTY;
    }

    public String getMAID() {
        return MAID == null ? "" : MAID;
    }

    public void setMAID(String MAID) {
        this.MAID = MAID;
    }

    public WorkOrderEntity getWORKORDER() {
        return WORKORDER;
    }

    public void setWORKORDER(WorkOrderEntity WORKORDER) {
        this.WORKORDER = WORKORDER;
    }

    public List<MatTypeBean> getMATLIST() {
        if (MATLIST == null) {
            return new ArrayList<>();
        }
        return MATLIST;
    }

    public void setMATLIST(List<MatTypeBean> MATLIST) {
        this.MATLIST = MATLIST;
    }

    public List<MatTypeBean> getMATTYPELIST() {
        if (MATTYPELIST == null) {
            return new ArrayList<>();
        }
        return MATTYPELIST;
    }

    public void setMATTYPELIST(List<MatTypeBean> MATTYPELIST) {
        this.MATTYPELIST = MATTYPELIST;
    }

    public List<EqpBean> getEQPLIST() {
        if (EQPLIST == null) {
            return new ArrayList<>();
        }
        return EQPLIST;
    }

    public void setEQPLIST(List<EqpBean> EQPLIST) {
        this.EQPLIST = EQPLIST;
    }

    public List<StepBean> getSTEPLIST() {
        if (STEPLIST == null) {
            return new ArrayList<>();
        }
        return STEPLIST;
    }

    public void setSTEPLIST(List<StepBean> STEPLIST) {
        this.STEPLIST = STEPLIST;
    }

    public String getMLOTID() {
        return MLOTID == null ? "" : MLOTID;
    }

    public void setMLOTID(String MLOTID) {
        this.MLOTID = MLOTID;
    }

    public List<EquipmentBean> getEquipmentList() {
        if (EquipmentList == null) {
            return new ArrayList<>();
        }
        return EquipmentList;
    }

    public void setEquipmentList(List<EquipmentBean> equipmentList) {
        EquipmentList = equipmentList;
    }

    public List<EquipmentBean> getEQUIPMENTLIST() {
        if (EquipmentList == null) {
            return new ArrayList<>();
        }
        return EquipmentList;
    }

    public void setEQUIPMENTLIST(List<EquipmentBean> EQUIPMENTLIST) {
        this.EquipmentList = EQUIPMENTLIST;
    }

    public List<EquipmentBean> getSUBEQUIPMENTLIST() {
        if (SUBEQUIPMENTLIST == null) {
            return new ArrayList<>();
        }
        return SUBEQUIPMENTLIST;
    }

    public void setSUBEQUIPMENTLIST(List<EquipmentBean> SUBEQUIPMENTLIST) {
        this.SUBEQUIPMENTLIST = SUBEQUIPMENTLIST;
    }

    public List<VendertBean> getVENDERLIST() {
        if (VENDERLIST == null) {
            return new ArrayList<>();
        }
        return VENDERLIST;
    }

    public void setVENDERLIST(List<VendertBean> VENDERLIST) {
        this.VENDERLIST = VENDERLIST;
    }

    public ArrayList<AdurefBean> getADUREFLIST() {
        if (ADUREFLIST == null) {
            return new ArrayList<>();
        }
        return ADUREFLIST;
    }

    public void setADUREFLIST(ArrayList<AdurefBean> ADUREFLIST) {
        this.ADUREFLIST = ADUREFLIST;
    }

    public LotEntity getLOT() {
        return LOT == null?new LotEntity():LOT;
    }

    public void setLOT(LotEntity LOT) {
        this.LOT = LOT;
    }

    public LotBean(String lotID) {
        this.LOTID = lotID;
    }

    public LotBean(String lotID, String eqpID) {
        this.LOTID = lotID;
        this.EQPID = eqpID;
    }

    public String getEQPID() {
        return EQPID == null ? "" : EQPID;
    }

    public void setEQPID(String EQPID) {
        this.EQPID = EQPID;
    }

    public ArrayList<ScrapcoDescBean> getSCRAPCODES() {
        if (SCRAPCODES == null) {
            return new ArrayList<>();
        }
        return SCRAPCODES;
    }

    public void setSCRAPCODES(ArrayList<ScrapcoDescBean> SCRAPCODES) {
        this.SCRAPCODES = SCRAPCODES;
    }

    public List<BomInfoBean> getBomInfo() {
        if (BomInfo == null) {
            return new ArrayList<>();
        }
        return BomInfo;
    }

    public void setBomInfo(List<BomInfoBean> bomInfo) {
        BomInfo = bomInfo;
    }

    public LotInfoBean getLotInfo() {
        return LotInfo;
    }

    public void setLotInfo(LotInfoBean lotInfo) {
        LotInfo = lotInfo;
    }

    public LotBean(String LOTID, String SCRAPTOTALQTY, List<ScrapBean> SCRAPS) {
        this.LOTID = LOTID;
        this.SCRAPTOTALQTY = SCRAPTOTALQTY;
        this.SCRAPS = SCRAPS;
    }

    public String getCONUTBARS() {
        return CONUTBARS == null ? "" : CONUTBARS;
    }

    public void setCONUTBARS(String CONUTBARS) {
        this.CONUTBARS = CONUTBARS;
    }

    public String getFORMULA() {
        return FORMULA == null ? "" : FORMULA;
    }

    public void setFORMULA(String FORMULA) {
        this.FORMULA = FORMULA;
    }

    public RulesBean getRULES() {
        return RULES;
    }

    public void setRULES(RulesBean RULES) {
        this.RULES = RULES;
    }

    public boolean isWrite() {
        return isWrite;
    }

    public void setWrite(boolean write) {
        isWrite = write;
    }

    public String getLOTID() {
        return LOTID == null ? "" : LOTID;
    }

    public void setLOTID(String LOTID) {
        this.LOTID = LOTID;
    }

    public String getSCRAPTOTALQTY() {
        return SCRAPTOTALQTY == null ? "" : SCRAPTOTALQTY;
    }

    public void setSCRAPTOTALQTY(String SCRAPTOTALQTY) {
        this.SCRAPTOTALQTY = SCRAPTOTALQTY;
    }

    public List<ScrapBean> getSCRAPS() {
        return SCRAPS == null ? new ArrayList<ScrapBean>() : SCRAPS;
    }

    public void setSCRAPS(List<ScrapBean> SCRAPS) {
        this.SCRAPS = SCRAPS;
    }

    public class RulesBean {
        private String REFERENCENAME;
        private String KEYID;
        private String TEXT;
        private String SEQNO;
        private String DESCRIPTION;

        public String getREFERENCENAME() {
            return REFERENCENAME == null ? "" : REFERENCENAME;
        }

        public void setREFERENCENAME(String REFERENCENAME) {
            this.REFERENCENAME = REFERENCENAME;
        }

        public String getKEYID() {
            return KEYID == null ? "" : KEYID;
        }

        public void setKEYID(String KEYID) {
            this.KEYID = KEYID;
        }

        public String getTEXT() {
            return TEXT == null ? "" : TEXT;
        }

        public void setTEXT(String TEXT) {
            this.TEXT = TEXT;
        }

        public String getSEQNO() {
            return SEQNO == null ? "" : SEQNO;
        }

        public void setSEQNO(String SEQNO) {
            this.SEQNO = SEQNO;
        }

        public String getDESCRIPTION() {
            return DESCRIPTION == null ? "" : DESCRIPTION;
        }

        public void setDESCRIPTION(String DESCRIPTION) {
            this.DESCRIPTION = DESCRIPTION;
        }
    }

    public class LotInfoBean {
        private String LOTID;
        private String SUBSTRATEID1;
        private String substrateId1;
        private String MAINQTY;
        private String mainQty;
        private String STEPNAME;
        private String STEPDESC;
        private String CFJUDGEFLAG;
        private String MODJUDGEFLAG;
        private String ATTRIBUTE1;
        private String ATTRIBUTE3;
        private String ATTRIBUTE4;
        private String ATTRIBUTE5;
        private String RECIPE;
        private String COUNTBARS;
        private String PARTNAME;
        private String GRADE1;
        private String LOCATIONID;
        private String locatorId;
        private String GRADES;
        private String DATECODES;

        public String getGRADES() {
            return GRADES == null ? "" : GRADES;
        }

        public void setGRADES(String GRADES) {
            this.GRADES = GRADES;
        }

        public String getDATECODES() {
            return DATECODES == null ? "" : DATECODES;
        }

        public void setDATECODES(String DATECODES) {
            this.DATECODES = DATECODES;
        }

        public String getSubstrateId1() {
            return substrateId1 == null ? "" : substrateId1;
        }

        public void setSubstrateId1(String substrateId1) {
            this.substrateId1 = substrateId1;
        }

        public String getMainQty() {
            return mainQty == null ? "" : mainQty;
        }

        public void setMainQty(String mainQty) {
            this.mainQty = mainQty;
        }

        public String getLocatorId() {
            return locatorId == null ? "" : locatorId;
        }

        public void setLocatorId(String locatorId) {
            this.locatorId = locatorId;
        }

        public String getLOCATIONID() {
            return LOCATIONID == null ? "" : LOCATIONID;
        }

        public void setLOCATIONID(String LOCATIONID) {
            this.LOCATIONID = LOCATIONID;
        }

        public String getATTRIBUTE5() {
            return ATTRIBUTE5 == null ? "" : ATTRIBUTE5;
        }

        public void setATTRIBUTE5(String ATTRIBUTE5) {
            this.ATTRIBUTE5 = ATTRIBUTE5;
        }

        public String getGRADE1() {
            return GRADE1 == null ? "" : GRADE1;
        }

        public void setGRADE1(String GRADE1) {
            this.GRADE1 = GRADE1;
        }

        public String getPARTNAME() {
            return PARTNAME == null ? "" : PARTNAME;
        }

        public void setPARTNAME(String PARTNAME) {
            this.PARTNAME = PARTNAME;
        }

        public String getCOUNTBARS() {
            return COUNTBARS == null ? "" : COUNTBARS;
        }

        public void setCOUNTBARS(String COUNTBARS) {
            this.COUNTBARS = COUNTBARS;
        }

        public String getLOTID() {
            return LOTID == null ? "" : LOTID;
        }

        public void setLOTID(String LOTID) {
            this.LOTID = LOTID;
        }

        public String getSUBSTRATEID1() {
            return SUBSTRATEID1 == null ? "" : SUBSTRATEID1;
        }

        public void setSUBSTRATEID1(String SUBSTRATEID1) {
            this.SUBSTRATEID1 = SUBSTRATEID1;
        }

        public String getMAINQTY() {
            return MAINQTY == null ? "" : MAINQTY;
        }

        public void setMAINQTY(String MAINQTY) {
            this.MAINQTY = MAINQTY;
        }

        public String getSTEPNAME() {
            return STEPNAME == null ? "" : STEPNAME;
        }

        public void setSTEPNAME(String STEPNAME) {
            this.STEPNAME = STEPNAME;
        }

        public String getSTEPDESC() {
            return STEPDESC == null ? "" : STEPDESC;
        }

        public void setSTEPDESC(String STEPDESC) {
            this.STEPDESC = STEPDESC;
        }

        public String getCFJUDGEFLAG() {
            return CFJUDGEFLAG == null ? "" : CFJUDGEFLAG;
        }

        public void setCFJUDGEFLAG(String CFJUDGEFLAG) {
            this.CFJUDGEFLAG = CFJUDGEFLAG;
        }

        public String getMODJUDGEFLAG() {
            return MODJUDGEFLAG == null ? "" : MODJUDGEFLAG;
        }

        public void setMODJUDGEFLAG(String MODJUDGEFLAG) {
            this.MODJUDGEFLAG = MODJUDGEFLAG;
        }

        public String getATTRIBUTE1() {
            return ATTRIBUTE1 == null ? "" : ATTRIBUTE1;
        }

        public void setATTRIBUTE1(String ATTRIBUTE1) {
            this.ATTRIBUTE1 = ATTRIBUTE1;
        }

        public String getATTRIBUTE3() {
            return ATTRIBUTE3 == null ? "" : ATTRIBUTE3;
        }

        public void setATTRIBUTE3(String ATTRIBUTE3) {
            this.ATTRIBUTE3 = ATTRIBUTE3;
        }

        public String getATTRIBUTE4() {
            return ATTRIBUTE4 == null ? "" : ATTRIBUTE4;
        }

        public void setATTRIBUTE4(String ATTRIBUTE4) {
            this.ATTRIBUTE4 = ATTRIBUTE4;
        }

        public String getRECIPE() {
            return RECIPE == null ? "" : RECIPE;
        }

        public void setRECIPE(String RECIPE) {
            this.RECIPE = RECIPE;
        }
    }

    public class BomInfoBean {

        private String MATERIALNAME;
        private String MATERIALVERSION;
        private String MATERIALDESC;
        private String MATERIALTYPE;
        private String MATERIALLOT;

        public String getMATERIALLOT() {
            return MATERIALLOT == null ? "" : MATERIALLOT;
        }

        public void setMATERIALLOT(String MATERIALLOT) {
            this.MATERIALLOT = MATERIALLOT;
        }

        public String getMATERIALNAME() {
            return MATERIALNAME == null ? "" : MATERIALNAME;
        }

        public void setMATERIALNAME(String MATERIALNAME) {
            this.MATERIALNAME = MATERIALNAME;
        }

        public String getMATERIALVERSION() {
            return MATERIALVERSION == null ? "" : MATERIALVERSION;
        }

        public void setMATERIALVERSION(String MATERIALVERSION) {
            this.MATERIALVERSION = MATERIALVERSION;
        }

        public String getMATERIALDESC() {
            return MATERIALDESC == null ? "" : MATERIALDESC;
        }

        public void setMATERIALDESC(String MATERIALDESC) {
            this.MATERIALDESC = MATERIALDESC;
        }

        public String getMATERIALTYPE() {
            return MATERIALTYPE == null ? "" : MATERIALTYPE;
        }

        public void setMATERIALTYPE(String MATERIALTYPE) {
            this.MATERIALTYPE = MATERIALTYPE;
        }
    }

    public class ScrapcoDescBean {
        private String CODE;
        private String DESCRIPTION;

        public String getCODE() {
            return CODE == null ? "" : CODE;
        }

        public void setCODE(String CODE) {
            this.CODE = CODE;
        }

        public String getDESCRIPTION() {
            return DESCRIPTION == null ? "" : DESCRIPTION;
        }

        public void setDESCRIPTION(String DESCRIPTION) {
            this.DESCRIPTION = DESCRIPTION;
        }
    }


    public class LotEntity {
        private String ATTRIBUTE1;
        private String ATTRIBUTE3;
        private String ATTRIBUTE4;
        private String CFJUDGEFLAG;
        private String LOTID;
        private int MAINQTY;
        private String MODJUDGEFLAG;
        private String STEPDESC;
        private String STEPNAME;
        private String SUBSTRATEID1;
        private String WOID;
        private String STATE;
        private String PARTDESC;
        private String PARTNAME;
        private String COUNTBARS;
        private String GRADE1;
        private UDFDTO UDF;


        public UDFDTO getUDF() {
            return UDF;
        }

        public void setUDF(UDFDTO UDF) {
            this.UDF = UDF;
        }

        public String getCOUNTBARS() {
            return COUNTBARS == null ? "" : COUNTBARS;
        }

        public void setCOUNTBARS(String COUNTBARS) {
            this.COUNTBARS = COUNTBARS;
        }

        public String getGRADE1() {
            return GRADE1 == null ? "" : GRADE1;
        }

        public void setGRADE1(String GRADE1) {
            this.GRADE1 = GRADE1;
        }

        public String getPARTDESC() {
            return PARTDESC == null ? "" : PARTDESC;
        }

        public void setPARTDESC(String PARTDESC) {
            this.PARTDESC = PARTDESC;
        }

        public String getPARTNAME() {
            return PARTNAME == null ? "" : PARTNAME;
        }

        public void setPARTNAME(String PARTNAME) {
            this.PARTNAME = PARTNAME;
        }

        public String getWOID() {
            return WOID == null ? "" : WOID;
        }

        public void setWOID(String WOID) {
            this.WOID = WOID;
        }

        public String getSTATE() {
            return STATE == null ? "" : STATE;
        }

        public void setSTATE(String STATE) {
            this.STATE = STATE;
        }

        public String getATTRIBUTE1() {
            return ATTRIBUTE1 == null ? "" : ATTRIBUTE1;
        }

        public void setATTRIBUTE1(String ATTRIBUTE1) {
            this.ATTRIBUTE1 = ATTRIBUTE1;
        }

        public String getATTRIBUTE3() {
            return ATTRIBUTE3 == null ? "" : ATTRIBUTE3;
        }

        public void setATTRIBUTE3(String ATTRIBUTE3) {
            this.ATTRIBUTE3 = ATTRIBUTE3;
        }

        public String getATTRIBUTE4() {
            return ATTRIBUTE4 == null ? "" : ATTRIBUTE4;
        }

        public void setATTRIBUTE4(String ATTRIBUTE4) {
            this.ATTRIBUTE4 = ATTRIBUTE4;
        }

        public String getCFJUDGEFLAG() {
            return CFJUDGEFLAG == null ? "" : CFJUDGEFLAG;
        }

        public void setCFJUDGEFLAG(String CFJUDGEFLAG) {
            this.CFJUDGEFLAG = CFJUDGEFLAG;
        }

        public String getLOTID() {
            return LOTID == null ? "" : LOTID;
        }

        public void setLOTID(String LOTID) {
            this.LOTID = LOTID;
        }

        public int getMAINQTY() {
            return MAINQTY;
        }

        public void setMAINQTY(int MAINQTY) {
            this.MAINQTY = MAINQTY;
        }

        public String getMODJUDGEFLAG() {
            return MODJUDGEFLAG == null ? "" : MODJUDGEFLAG;
        }

        public void setMODJUDGEFLAG(String MODJUDGEFLAG) {
            this.MODJUDGEFLAG = MODJUDGEFLAG;
        }

        public String getSTEPDESC() {
            return STEPDESC == null ? "" : STEPDESC;
        }

        public void setSTEPDESC(String STEPDESC) {
            this.STEPDESC = STEPDESC;
        }

        public String getSTEPNAME() {
            return STEPNAME == null ? "" : STEPNAME;
        }

        public void setSTEPNAME(String STEPNAME) {
            this.STEPNAME = STEPNAME;
        }

        public String getSUBSTRATEID1() {
            return SUBSTRATEID1 == null ? "" : SUBSTRATEID1;
        }

        public void setSUBSTRATEID1(String SUBSTRATEID1) {
            this.SUBSTRATEID1 = SUBSTRATEID1;
        }


        public  class UDFDTO {
            private String RESERVED1;

            public String getRESERVED1() {
                return RESERVED1 == null ? "" : RESERVED1;
            }

            public void setRESERVED1(String RESERVED1) {
                this.RESERVED1 = RESERVED1;
            }
        }
    }

    public class AdurefBean {
        private String REFERENCENAME;
        private String KEYID;
        private String TEXT;
        private int SEQNO;
        private String DESCRIPTION;

        public String getREFERENCENAME() {
            return REFERENCENAME == null ? "" : REFERENCENAME;
        }

        public void setREFERENCENAME(String REFERENCENAME) {
            this.REFERENCENAME = REFERENCENAME;
        }

        public String getKEYID() {
            return KEYID == null ? "" : KEYID;
        }

        public void setKEYID(String KEYID) {
            this.KEYID = KEYID;
        }

        public String getTEXT() {
            return TEXT == null ? "" : TEXT;
        }

        public void setTEXT(String TEXT) {
            this.TEXT = TEXT;
        }

        public int getSEQNO() {
            return SEQNO;
        }

        public void setSEQNO(int SEQNO) {
            this.SEQNO = SEQNO;
        }

        public String getDESCRIPTION() {
            return DESCRIPTION == null ? "" : DESCRIPTION;
        }

        public void setDESCRIPTION(String DESCRIPTION) {
            this.DESCRIPTION = DESCRIPTION;
        }
    }

    public class StepBean {
        private String NAME;

        public String getNAME() {
            return NAME == null ? "" : NAME;
        }

        public void setNAME(String NAME) {
            this.NAME = NAME;
        }
    }

    public class EqpBean {
        private String equipmentId;

        public String getEquipmentId() {
            return equipmentId == null ? "" : equipmentId;
        }

        public void setEquipmentId(String equipmentId) {
            this.equipmentId = equipmentId;
        }
    }

    public static class MatTypeBean {
        private String name;
        private String UOMID;
        private String NAME;
        private String DESCRIPTION;
        private String MATERIALNAME;
        private UDFBean UDF;

        public String getMATERIALNAME() {
            return MATERIALNAME == null ? "" : MATERIALNAME;
        }

        public void setMATERIALNAME(String MATERIALNAME) {
            this.MATERIALNAME = MATERIALNAME;
        }

        public String getDESCRIPTION() {
            return DESCRIPTION == null ? "" : DESCRIPTION;
        }

        public void setDESCRIPTION(String DESCRIPTION) {
            this.DESCRIPTION = DESCRIPTION;
        }

        public String getUomId() {
            return UOMID == null ? "" : UOMID;
        }

        public void setUomId(String uomId) {
            this.UOMID = uomId;
        }

        public UDFBean getUdf() {
            return UDF;
        }

        public void setUdf(UDFBean udf) {
            this.UDF = udf;
        }

        public String getNAME() {
            return NAME == null ? "" : NAME;
        }

        public void setNAME(String NAME) {
            this.NAME = NAME;
        }

        public String getName() {
            return name == null ? "" : name;
        }

        public void setName(String name) {
            this.name = name;
        }

        public static class UDFBean {
            private String applyOutQty;
            private String WAKEUPENDDATE;
            private String FLOORLIFEEXPIRE;

            private String ISNEEDPRINT;

            public String getISNEEDPRINT() {
                return ISNEEDPRINT == null ? "" : ISNEEDPRINT;
            }

            public void setISNEEDPRINT(String ISNEEDPRINT) {
                this.ISNEEDPRINT = ISNEEDPRINT;
            }


            public String getWAKEUPENDDATE() {
                return WAKEUPENDDATE == null ? "" : WAKEUPENDDATE;
            }

            public void setWAKEUPENDDATE(String WAKEUPENDDATE) {
                this.WAKEUPENDDATE = WAKEUPENDDATE;
            }

            public String getFLOORLIFEEXPIRE() {
                return FLOORLIFEEXPIRE == null ? "" : FLOORLIFEEXPIRE;
            }

            public void setFLOORLIFEEXPIRE(String FLOORLIFEEXPIRE) {
                this.FLOORLIFEEXPIRE = FLOORLIFEEXPIRE;
            }

            public String getApplyOutQty() {
                return applyOutQty == null ? "" : applyOutQty;
            }

            public void setApplyOutQty(String applyOutQty) {
                this.applyOutQty = applyOutQty;
            }
        }
    }
}
